<template>
  <div>
    <LazyLoadTab v-model="activeName" :tabMenus="menus" destroyOnClose></LazyLoadTab>
  </div>
</template>
<script>
export default {
  props: {
    vin: String,
    ownerNo: String,
    type: Number
  },
  data() {
    return {
      activeName: '客户流失招揽历史',
      menus: this.createdMenus()
    };
  },
  methods: {
    createdMenus() {
      return [
        {
          title: '客户流失招揽历史',
          path: 'customerRepair/customerLoss/lossRemind/history',
          params: {
            vin: this.vin,
            ownerNo: this.ownerNo,
            type: this.type
          }
        },
        {
          title: '提醒历史',
          path: 'customerRepair/customerLoss/lossRemind/historys',
          params: {
            vin: this.vin,
            ownerNo: this.ownerNo
          }
        }
      ];
    }
  }
};
</script>
